import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',redirect:'/login'},
    {path: '/login',
      name:"login",
      component:()=>import("../views/login")
    },
    { path: '/index',
      name:'index',
      component:()=>import("../views/index"),
      children:[
        {path:'person',name:"person",component:()=>import("../views/person/person")},
        {path:'temp',name:"temp",component:()=>import("../views/temp/temp")},
        {path:'group',name:"group",component:()=>import("../views/group/group")},
      ]
    }

  ]
})
